package jsc.graph;

import java.awt.GridLayout;
import java.util.HashSet;

import javax.swing.JFrame;

import jsc.acid.Word;

/**
 * This class display a frame wich holds some wrong words via an instance of the ComponentWrongWords class 
 * 
 * @author Alec Ermis, Maxime Rihouey
 *
 */
public class FrameWrongWords extends JFrame{

	private static int height = 600;
	private static int width = 600;

	// constructors
	public FrameWrongWords(){
		initialize();
	}

	// methods
	public void initialize(){
		this.setTitle("Wrong words");
		this.setSize(width, height);
		this.getContentPane().setLayout(new GridLayout(3,8));
		this.setVisible(true);
	}

	public void add(Word word, HashSet<String> alternatives){
		this.add(new ComponentWrongWords(word, alternatives));
	}
}
